// #ifndef VUE3
import Vue from "vue";

import App from "./App";

// import tabBar from "components/tabar/tabar/tabar.vue";
import UniIcons from "./uni_modules/uni-icons/components/uni-icons/uni-icons.vue";
Vue.component("UniIcons", UniIcons);

// 引入 api.js 文件
import {
	myRequest
} from "api/api.js";
// 挂载到全局使用
Vue.prototype.$myRequest = myRequest;

Vue.config.productionTip = false;
App.mpType = "app";
// //引入我们自己定义的tabBar组件
//  //
const app = new Vue({
	...App,
});
app.$mount();
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from "vue";

import App from "./App.vue";
import uView from "uview-ui";
Vue.use(uView);
uni.$u.config.unit = "rpx";
export function createApp() {
	const app = createSSRApp(App);
	return {
		app,
	};
}
// #endif